#pragma once

#include "Business/IMarketHandler.h"
#include "Business/Market.h"
#include "Formula/BasicFormula.h"
#include "Business/KLine/KLine.h"

class TrendCalculator
{
public:
	TrendCalculator(size_t minute, size_t count);
	~TrendCalculator();
	bool OnMarket(Market const& market);
	bool IsBull() const;
	bool IsBear() const;

private:
	KLine m_kline;
	size_t m_count;
	Formula::VariableHolder m_close;
	Formula::VariableHolder m_openint;
	struct Something;
	Something* m_something;
	std::pair<bool,bool> m_result;
};